class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :first_name
      t.string :last_name
      t.string :email

      t.timestamps
    end

    #creating a default user
    insert_row('users', :first_name => 'Ashraf', :last_name => 'Zaman', :email => 'admin@domain.com')
  end

  def self.down
    drop_table :users
  end
end
